using System;
namespace Microsoft.Phone.Controls
{
	internal class MonthDataSource : DataSource
	{
		protected override DateTime? GetRelativeTo(DateTime relativeDate, int delta)
		{
			int num = (12 + relativeDate.get_Month() - 1 + delta) % 12 + 1;
			int num2 = Math.Min(relativeDate.get_Day(), DateTime.DaysInMonth(relativeDate.get_Year(), num));
			return new DateTime?(new DateTime(relativeDate.get_Year(), num, num2, relativeDate.get_Hour(), relativeDate.get_Minute(), relativeDate.get_Second()));
		}
	}
}
